home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / AVComponents.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  22.4 KB  |  733 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        AVComponents.a
  3. ;
  4. ;    Contains:    Standard includes for standard AV panels
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1989-1997 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__AVCOMPONENTS__') = 'UNDEFINED' THEN
  19. __AVCOMPONENTS__ SET 1
  20.  
  21.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  22.     include 'Dialogs.a'
  23.     ENDIF
  24.     IF &TYPE('__VIDEO__') = 'UNDEFINED' THEN
  25.     include 'Video.a'
  26.     ENDIF
  27.     IF &TYPE('__DISPLAYS__') = 'UNDEFINED' THEN
  28.     include 'Displays.a'
  29.     ENDIF
  30.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  31.     include 'Components.a'
  32.     ENDIF
  33.  
  34. ;    The subtypes listed here are for example only.  The display manager will find _all_ panels
  35. ;      with the appropriate types.  These panels return class information that is used to devide them
  36. ;      up into groups to be displayed in the AV Windows (class means "geometry" or "color" or other groupings
  37. ;      like that.
  38. ;
  39.  
  40.  
  41. kAVPanelType                    EQU        'avpc'                ; Panel subtypes            
  42. kBrightnessPanelSubType            EQU        'brit'
  43. kContrastPanelSubType            EQU        'cont'
  44. kBitDepthPanelSubType            EQU        'bitd'
  45. kAVEngineType                    EQU        'avec'                ; Engine subtypes                
  46. kBrightnessEngineSubType        EQU        'brit'
  47. kContrastEngineSubType            EQU        'cont'                ;        kBitDepthEngineSubType        = 'bitd',            // Not used                    
  48. kAVPortType                        EQU        'avdp'                ;subtypes are defined in each port's public .h file
  49. ;  PortComponent subtypes are up to the port and display manager does not use the subtype
  50. ;    to find port components.  Instead, display manager uses an internal cache to search for portcompoennts.
  51. ;    It turns out to be useful to have a unique subtype so that engines can see if they should apply themselves to
  52. ;    a particular port component.
  53. ;  
  54. ;   PortKinds are the "class" of port.  When a port is registered with display manager (creating a display ID), the
  55. ;    caller of DMNewDisplayIDByPortComponent passes a portKind.  Ports of this type are returned by
  56. ;    DMNewDevicePortList.
  57. ;  
  58. ;   PortKinds are NOT subtypes of components
  59. ;   PortKinds ARE used to register and find port components with Display Manager.  Here are the basic port kinds:
  60. ;  
  61. ;   Video displays are distinct from video out because there are some video out ports that are not actaully displays.
  62. ;    if EZAV is looking to configure displays, it needs to look for kAVVideoDisplayPortKind not kAVVideoOutPortKind.
  63.  
  64.  
  65. kAVVideoDisplayPortKind            EQU        'pkdo'                ; Video Display (CRT or panel display)                
  66. kAVVideoOutPortKind                EQU        'pkvo'                ; Video out port (camera output).                      
  67. kAVVideoInPortKind                EQU        'pkvi'                ; Video in port (camera input)                        
  68. kAVSoundOutPortKind                EQU        'pkso'                ; Sound out port (speaker or speaker jack)            
  69. kAVSoundInPortKind                EQU        'pksi'                ; Sound in port (microphone or microphone jack)    
  70. kAVDeviceType                    EQU        'avdc'                ; Device Component subtypes are up to the manufacturor since each device may contain multiple function types (eg telecaster) 
  71. kAVDisplayDeviceKind            EQU        'dkvo'                ; Display device
  72.                                                             ; Device Component subtypes are up to the manufacturor since each device may contain multiple function types (eg telecaster)
  73. kAVCategoryType                    EQU        'avcc'
  74. kAVSoundInSubType                EQU        'avao'
  75. kAVSoundOutSubType                EQU        'avai'
  76. kAVVideoInSubType                EQU        'vdin'
  77. kAVVideoOutSubType                EQU        'vdou'
  78. kAVInvalidType                    EQU        'badt'                ; Some calls return a component type, in case of errors, these types are set to kAVInvalidComponentType 
  79.  
  80.  
  81. ;   Constants for Panel Classes (used to build buttons in AVSetup) 
  82. ;   but is generic to all panels 
  83.  
  84.  
  85.  
  86. kAVPanelClassDisplayDefault        EQU        'cdsp'
  87. kAVPanelClassColor                EQU        'cclr'
  88. kAVPanelClassGeometry            EQU        'cgeo'
  89. kAVPanelClassSound                EQU        'csnd'
  90. kAVPanelClassPreferences        EQU        'cprf'
  91. ;  =============================                    
  92. ;  Component interface revision levels and history    
  93. ;  =============================                    
  94.  
  95. kAVPanelComponentInterfaceRevOne EQU    1
  96. kAVEngineComponentInterfaceRevOne EQU    1
  97. kAVPortComponentInterfaceRevOne    EQU        1
  98. kAVDeviceComponentInterfaceRevOne EQU    1
  99.  
  100.  
  101. kBaseAVComponentSelector        EQU        256                    ; First apple-defined selector for AV components 
  102.  
  103. ;  =============================                
  104. ;  Panel Standard component selectors            
  105. ;  =============================                
  106.  
  107. kAVPanelFakeRegisterSelect        EQU        -5                    ; -5    
  108. kAVPanelSetCustomDataSelect        EQU        0
  109. kAVPanelGetDitlSelect            EQU        1
  110. kAVPanelGetTitleSelect            EQU        2
  111. kAVPanelInstallSelect            EQU        3
  112. kAVPanelEventSelect                EQU        4
  113. kAVPanelItemSelect                EQU        5
  114. kAVPanelRemoveSelect            EQU        6
  115. kAVPanelValidateInputSelect        EQU        7
  116. kAVPanelGetSettingsIdentifiersSelect EQU 8
  117. kAVPanelGetSettingsSelect        EQU        9
  118. kAVPanelSetSettingsSelect        EQU        10
  119. kAVPanelSelectorGetFidelitySelect EQU    256
  120. kAVPanelSelectorTargetDeviceSelect EQU    257
  121. kAVPanelSelectorGetPanelClassSelect EQU    258
  122.  
  123. ;  =============================                
  124. ;  Engine Standard component selectors            
  125. ;  =============================                
  126.  
  127. kAVEngineGetEngineFidelitySelect EQU    256
  128. kAVEngineTargetDeviceSelect        EQU        257
  129.  
  130. ;  =============================                    
  131. ;  Video Port Specific calls                        
  132. ;  =============================                    
  133.  
  134. kAVPortCheckTimingModeSelect    EQU        0
  135. kAVPortReserved1Select            EQU        1                    ; Reserved
  136.  
  137. ;  =============================                    
  138. ;  AV Port Specific calls                            
  139. ;  =============================                    
  140.  
  141. kAVPortGetAVDeviceFidelitySelect EQU    256                    ; Port Standard Component selectors 
  142. kAVPortGetWiggleSelect            EQU        257
  143. kAVPortSetWiggleSelect            EQU        258
  144. kAVPortGetNameSelect            EQU        259
  145. kAVPortGetGraphicInfoSelect        EQU        260
  146. kAVPortSetActiveSelect            EQU        261
  147. kAVPortGetActiveSelect            EQU        262
  148. kAVPortUnsed1Select                EQU        263                    ; Selector removed as part of API change.  We don't want to mess up the following selectors, so we put in this spacer (ie kPadSelector). 
  149. kAVPortGetAVIDSelect            EQU        264
  150. kAVPortSetAVIDSelect            EQU        265
  151. kAVPortSetDeviceAVIDSelect        EQU        266                    ; For registrar to set device (instead of hitting global directly) -- should only be called once 
  152. kAVPortGetDeviceAVIDSelect        EQU        267                    ; Called by display mgr for generic ports 
  153. kAVPortGetPowerStateSelect        EQU        268
  154. kAVPortSetPowerStateSelect        EQU        269
  155. kAVPortGetMakeAndModelSelect    EQU        270                    ; Get Make and model information
  156.  
  157.  
  158.  
  159. ;  =============================                    
  160. ;  Device Component Standard Component selectors    
  161. ;  =============================                    
  162.  
  163. kAVDeviceGetNameSelect            EQU        256
  164. kAVDeviceGetGraphicInfoSelect    EQU        257
  165. kAVDeviceGetPowerStateSelect    EQU        258
  166. kAVDeviceSetPowerStateSelect    EQU        259
  167. kAVDeviceGetAVIDSelect            EQU        260
  168. kAVDeviceSetAVIDSelect            EQU        261
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176. ;  =============================                
  177. ;  Engine Standard component selectors            
  178. ;  =============================                
  179. ;
  180. ; pascal ComponentResult AVEngineComponentGetFidelity(ComponentInstance engineComponent, DisplayIDType displayID, DMFidelityType *engineFidelity)
  181. ;
  182.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  183.         Macro
  184.         _AVEngineComponentGetFidelity
  185.             move.l              #$00080100,-(sp)
  186.             moveq               #0,D0
  187.             dc.w                $A82A
  188.         EndM
  189.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  190.         IMPORT_CFM_FUNCTION AVEngineComponentGetFidelity
  191.     ENDIF
  192.  
  193. ;
  194. ; pascal ComponentResult AVEngineComponentTargetDevice(ComponentInstance engineComponent, DisplayIDType displayID)
  195. ;
  196.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  197.         Macro
  198.         _AVEngineComponentTargetDevice
  199.             move.l              #$00040101,-(sp)
  200.             moveq               #0,D0
  201.             dc.w                $A82A
  202.         EndM
  203.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  204.         IMPORT_CFM_FUNCTION AVEngineComponentTargetDevice
  205.     ENDIF
  206.  
  207.  
  208. ;  =============================                
  209. ;  Panel Standard Component calls                
  210. ;  =============================                
  211. ;
  212. ; pascal ComponentResult AVPanelFakeRegister(ComponentInstance ci)
  213. ;
  214.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  215.         Macro
  216.         _AVPanelFakeRegister
  217.             move.l              #$0000FFFB,-(sp)
  218.             moveq               #0,D0
  219.             dc.w                $A82A
  220.         EndM
  221.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  222.         IMPORT_CFM_FUNCTION AVPanelFakeRegister
  223.     ENDIF
  224.  
  225. ;
  226. ; pascal ComponentResult AVPanelSetCustomData(ComponentInstance ci, long theCustomData)
  227. ;
  228.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  229.         Macro
  230.         _AVPanelSetCustomData
  231.             move.l              #$00040000,-(sp)
  232.             moveq               #0,D0
  233.             dc.w                $A82A
  234.         EndM
  235.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  236.         IMPORT_CFM_FUNCTION AVPanelSetCustomData
  237.     ENDIF
  238.  
  239. ;
  240. ; pascal ComponentResult AVPanelGetDitl(ComponentInstance ci, Handle *ditl)
  241. ;
  242.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  243.         Macro
  244.         _AVPanelGetDitl
  245.             move.l              #$00040001,-(sp)
  246.             moveq               #0,D0
  247.             dc.w                $A82A
  248.         EndM
  249.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  250.         IMPORT_CFM_FUNCTION AVPanelGetDitl
  251.     ENDIF
  252.  
  253. ;
  254. ; pascal ComponentResult AVPanelGetTitle(ComponentInstance ci, StringPtr title)
  255. ;
  256.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  257.         Macro
  258.         _AVPanelGetTitle
  259.             move.l              #$00040002,-(sp)
  260.             moveq               #0,D0
  261.             dc.w                $A82A
  262.         EndM
  263.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  264.         IMPORT_CFM_FUNCTION AVPanelGetTitle
  265.     ENDIF
  266.  
  267. ;
  268. ; pascal ComponentResult AVPanelInstall(ComponentInstance ci, DialogPtr dialog, short itemOffset)
  269. ;
  270.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  271.         Macro
  272.         _AVPanelInstall
  273.             move.l              #$00060003,-(sp)
  274.             moveq               #0,D0
  275.             dc.w                $A82A
  276.         EndM
  277.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  278.         IMPORT_CFM_FUNCTION AVPanelInstall
  279.     ENDIF
  280.  
  281. ;
  282. ; pascal ComponentResult AVPanelEvent(ComponentInstance ci, DialogPtr dialog, short itemOffset, EventRecord *event, short *itemHit, Boolean *handled)
  283. ;
  284.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  285.         Macro
  286.         _AVPanelEvent
  287.             move.l              #$00120004,-(sp)
  288.             moveq               #0,D0
  289.             dc.w                $A82A
  290.         EndM
  291.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  292.         IMPORT_CFM_FUNCTION AVPanelEvent
  293.     ENDIF
  294.  
  295. ;
  296. ; pascal ComponentResult AVPanelItem(ComponentInstance ci, DialogPtr dialog, short itemOffset, short itemNum)
  297. ;
  298.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  299.         Macro
  300.         _AVPanelItem
  301.             move.l              #$00080005,-(sp)
  302.             moveq               #0,D0
  303.             dc.w                $A82A
  304.         EndM
  305.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  306.         IMPORT_CFM_FUNCTION AVPanelItem
  307.     ENDIF
  308.  
  309. ;
  310. ; pascal ComponentResult AVPanelRemove(ComponentInstance ci, DialogPtr dialog, short itemOffset)
  311. ;
  312.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  313.         Macro
  314.         _AVPanelRemove
  315.             move.l              #$00060006,-(sp)
  316.             moveq               #0,D0
  317.             dc.w                $A82A
  318.         EndM
  319.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  320.         IMPORT_CFM_FUNCTION AVPanelRemove
  321.     ENDIF
  322.  
  323. ;
  324. ; pascal ComponentResult AVPanelValidateInput(ComponentInstance ci, Boolean *ok)
  325. ;
  326.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  327.         Macro
  328.         _AVPanelValidateInput
  329.             move.l              #$00040007,-(sp)
  330.             moveq               #0,D0
  331.             dc.w                $A82A
  332.         EndM
  333.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  334.         IMPORT_CFM_FUNCTION AVPanelValidateInput
  335.     ENDIF
  336.  
  337. ;
  338. ; pascal ComponentResult AVPanelGetSettingsIdentifiers(ComponentInstance ci, short *theID, OSType *theType)
  339. ;
  340.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  341.         Macro
  342.         _AVPanelGetSettingsIdentifiers
  343.             move.l              #$00080008,-(sp)
  344.             moveq               #0,D0
  345.             dc.w                $A82A
  346.         EndM
  347.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  348.         IMPORT_CFM_FUNCTION AVPanelGetSettingsIdentifiers
  349.     ENDIF
  350.  
  351. ;
  352. ; pascal ComponentResult AVPanelGetSettings(ComponentInstance ci, Handle *userDataHand, long flags, DialogPtr theDialog, long itemsOffset)
  353. ;
  354.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  355.         Macro
  356.         _AVPanelGetSettings
  357.             move.l              #$00100009,-(sp)
  358.             moveq               #0,D0
  359.             dc.w                $A82A
  360.         EndM
  361.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  362.         IMPORT_CFM_FUNCTION AVPanelGetSettings
  363.     ENDIF
  364.  
  365. ;
  366. ; pascal ComponentResult AVPanelSetSettings(ComponentInstance ci, Handle userDataHand, long flags, DialogPtr theDialog, long itemsOffset)
  367. ;
  368.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  369.         Macro
  370.         _AVPanelSetSettings
  371.             move.l              #$0010000A,-(sp)
  372.             moveq               #0,D0
  373.             dc.w                $A82A
  374.         EndM
  375.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  376.         IMPORT_CFM_FUNCTION AVPanelSetSettings
  377.     ENDIF
  378.  
  379. ;
  380. ; pascal ComponentResult AVPanelGetFidelity(ComponentInstance panelComponent, DisplayIDType displayID, DMFidelityType *panelFidelity)
  381. ;
  382.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  383.         Macro
  384.         _AVPanelGetFidelity
  385.             move.l              #$00080100,-(sp)
  386.             moveq               #0,D0
  387.             dc.w                $A82A
  388.         EndM
  389.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  390.         IMPORT_CFM_FUNCTION AVPanelGetFidelity
  391.     ENDIF
  392.  
  393. ;
  394. ; pascal ComponentResult AVPanelComponentTargetDevice(ComponentInstance panelComponent, DisplayIDType displayID, DialogPtr theDialog, long itemsOffset)
  395. ;
  396.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  397.         Macro
  398.         _AVPanelComponentTargetDevice
  399.             move.l              #$000C0101,-(sp)
  400.             moveq               #0,D0
  401.             dc.w                $A82A
  402.         EndM
  403.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  404.         IMPORT_CFM_FUNCTION AVPanelComponentTargetDevice
  405.     ENDIF
  406.  
  407. ;
  408. ; pascal ComponentResult AVPanelComponentGetPanelClass(ComponentInstance panelComponent, ResType *panelClass, ResType *subClass, Ptr reserved1, Ptr reserved2)
  409. ;
  410.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  411.         Macro
  412.         _AVPanelComponentGetPanelClass
  413.             move.l              #$00100102,-(sp)
  414.             moveq               #0,D0
  415.             dc.w                $A82A
  416.         EndM
  417.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  418.         IMPORT_CFM_FUNCTION AVPanelComponentGetPanelClass
  419.     ENDIF
  420.  
  421.  
  422. ;  =============================                
  423. ;  Port Component Standard Component selectors    
  424. ;  =============================                
  425. ;
  426. ; pascal ComponentResult AVPortGetAVDeviceFidelity(ComponentInstance portComponent, AVIDType deviceAVID, DMFidelityType *portFidelity)
  427. ;
  428.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  429.         Macro
  430.         _AVPortGetAVDeviceFidelity
  431.             move.l              #$00080100,-(sp)
  432.             moveq               #0,D0
  433.             dc.w                $A82A
  434.         EndM
  435.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  436.         IMPORT_CFM_FUNCTION AVPortGetAVDeviceFidelity
  437.     ENDIF
  438.  
  439. ;
  440. ; pascal ComponentResult AVPortGetWiggle(ComponentInstance portComponent, Boolean *wiggleDevice)
  441. ;
  442.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  443.         Macro
  444.         _AVPortGetWiggle
  445.             move.l              #$00040101,-(sp)
  446.             moveq               #0,D0
  447.             dc.w                $A82A
  448.         EndM
  449.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  450.         IMPORT_CFM_FUNCTION AVPortGetWiggle
  451.     ENDIF
  452.  
  453. ;
  454. ; pascal ComponentResult AVPortSetWiggle(ComponentInstance portComponent, Boolean wiggleDevice)
  455. ;
  456.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  457.         Macro
  458.         _AVPortSetWiggle
  459.             move.l              #$00020102,-(sp)
  460.             moveq               #0,D0
  461.             dc.w                $A82A
  462.         EndM
  463.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  464.         IMPORT_CFM_FUNCTION AVPortSetWiggle
  465.     ENDIF
  466.  
  467. ;
  468. ; pascal ComponentResult AVPortGetName(ComponentInstance portComponent, Str255 portName)
  469. ;
  470.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  471.         Macro
  472.         _AVPortGetName
  473.             move.l              #$00040103,-(sp)
  474.             moveq               #0,D0
  475.             dc.w                $A82A
  476.         EndM
  477.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  478.         IMPORT_CFM_FUNCTION AVPortGetName
  479.     ENDIF
  480.  
  481. ;
  482. ; pascal ComponentResult AVPortGetGraphicInfo(ComponentInstance portComponent, PicHandle *thePict, Handle *theIconSuite, AVLocationPtr theLocation)
  483. ;
  484.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  485.         Macro
  486.         _AVPortGetGraphicInfo
  487.             move.l              #$000C0104,-(sp)
  488.             moveq               #0,D0
  489.             dc.w                $A82A
  490.         EndM
  491.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  492.         IMPORT_CFM_FUNCTION AVPortGetGraphicInfo
  493.     ENDIF
  494.  
  495. ;
  496. ; pascal ComponentResult AVPortSetActive(ComponentInstance portComponent, Boolean setActive)
  497. ;
  498.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  499.         Macro
  500.         _AVPortSetActive
  501.             move.l              #$00020105,-(sp)
  502.             moveq               #0,D0
  503.             dc.w                $A82A
  504.         EndM
  505.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  506.         IMPORT_CFM_FUNCTION AVPortSetActive
  507.     ENDIF
  508.  
  509. ;
  510. ; pascal ComponentResult AVPortGetActive(ComponentInstance portComponent, Boolean *isPortActive, Boolean *portCanBeActivated, void *reserved)
  511. ;
  512.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  513.         Macro
  514.         _AVPortGetActive
  515.             move.l              #$000C0106,-(sp)
  516.             moveq               #0,D0
  517.             dc.w                $A82A
  518.         EndM
  519.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  520.         IMPORT_CFM_FUNCTION AVPortGetActive
  521.     ENDIF
  522.  
  523. ;
  524. ; pascal ComponentResult AVPortGetAVID(ComponentInstance portComponent, AVIDType *avDeviceID)
  525. ;
  526.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  527.         Macro
  528.         _AVPortGetAVID
  529.             move.l              #$00040108,-(sp)
  530.             moveq               #0,D0
  531.             dc.w                $A82A
  532.         EndM
  533.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  534.         IMPORT_CFM_FUNCTION AVPortGetAVID
  535.     ENDIF
  536.  
  537. ;
  538. ; pascal ComponentResult AVPortSetAVID(ComponentInstance portComponent, AVIDType avDeviceID)
  539. ;
  540.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  541.         Macro
  542.         _AVPortSetAVID
  543.             move.l              #$00040109,-(sp)
  544.             moveq               #0,D0
  545.             dc.w                $A82A
  546.         EndM
  547.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  548.         IMPORT_CFM_FUNCTION AVPortSetAVID
  549.     ENDIF
  550.  
  551. ;
  552. ; pascal ComponentResult AVPortSetDeviceAVID(ComponentInstance portComponent, AVIDType avDeviceID)
  553. ;
  554.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  555.         Macro
  556.         _AVPortSetDeviceAVID
  557.             move.l              #$0004010A,-(sp)
  558.             moveq               #0,D0
  559.             dc.w                $A82A
  560.         EndM
  561.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  562.         IMPORT_CFM_FUNCTION AVPortSetDeviceAVID
  563.     ENDIF
  564.  
  565. ;
  566. ; pascal ComponentResult AVPortGetDeviceAVID(ComponentInstance portComponent, AVIDType *avDeviceID)
  567. ;
  568.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  569.         Macro
  570.         _AVPortGetDeviceAVID
  571.             move.l              #$0004010B,-(sp)
  572.             moveq               #0,D0
  573.             dc.w                $A82A
  574.         EndM
  575.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  576.         IMPORT_CFM_FUNCTION AVPortGetDeviceAVID
  577.     ENDIF
  578.  
  579. ;
  580. ; pascal ComponentResult AVPortGetPowerState(ComponentInstance deviceComponent, AVPowerStatePtr getPowerState)
  581. ;
  582.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  583.         Macro
  584.         _AVPortGetPowerState
  585.             move.l              #$0004010C,-(sp)
  586.             moveq               #0,D0
  587.             dc.w                $A82A
  588.         EndM
  589.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  590.         IMPORT_CFM_FUNCTION AVPortGetPowerState
  591.     ENDIF
  592.  
  593. ;
  594. ; pascal ComponentResult AVPortSetPowerState(ComponentInstance deviceComponent, AVPowerStatePtr setPowerState)
  595. ;
  596.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  597.         Macro
  598.         _AVPortSetPowerState
  599.             move.l              #$0004010D,-(sp)
  600.             moveq               #0,D0
  601.             dc.w                $A82A
  602.         EndM
  603.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  604.         IMPORT_CFM_FUNCTION AVPortSetPowerState
  605.     ENDIF
  606.  
  607. ;
  608. ; pascal ComponentResult AVPortGetMakeAndModel(ComponentInstance displayComponent, DisplayIDType theDisplayID, ResType *manufacturer, UInt32 *model, UInt32 *serialNumber)
  609. ;
  610.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  611.         Macro
  612.         _AVPortGetMakeAndModel
  613.             move.l              #$0010010E,-(sp)
  614.             moveq               #0,D0
  615.             dc.w                $A82A
  616.         EndM
  617.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  618.         IMPORT_CFM_FUNCTION AVPortGetMakeAndModel
  619.     ENDIF
  620.  
  621.  
  622. ;  =============================                
  623. ;  Video Out Port Component Selectors            
  624. ;  =============================                
  625. ;
  626. ; pascal ComponentResult AVPortCheckTimingMode(ComponentInstance displayComponent, DisplayIDType theDisplayID, VDDisplayConnectInfoPtr connectInfo, VDTimingInfoPtr modeTiming, UInt32 reserved)
  627. ;
  628.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  629.         Macro
  630.         _AVPortCheckTimingMode
  631.             move.l              #$00100000,-(sp)
  632.             moveq               #0,D0
  633.             dc.w                $A82A
  634.         EndM
  635.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  636.         IMPORT_CFM_FUNCTION AVPortCheckTimingMode
  637.     ENDIF
  638.  
  639. ;  =============================                
  640. ;  AV Device Component Selectors                
  641. ;  =============================                
  642. ;
  643. ; pascal ComponentResult AVDeviceGetName(ComponentInstance portComponent, Str255 portName)
  644. ;
  645.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  646.         Macro
  647.         _AVDeviceGetName
  648.             move.l              #$00040100,-(sp)
  649.             moveq               #0,D0
  650.             dc.w                $A82A
  651.         EndM
  652.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  653.         IMPORT_CFM_FUNCTION AVDeviceGetName
  654.     ENDIF
  655.  
  656. ;
  657. ; pascal ComponentResult AVDeviceGetGraphicInfo(ComponentInstance portComponent, PicHandle *thePict, Handle *theIconSuite, AVLocationPtr theLocation)
  658. ;
  659.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  660.         Macro
  661.         _AVDeviceGetGraphicInfo
  662.             move.l              #$000C0101,-(sp)
  663.             moveq               #0,D0
  664.             dc.w                $A82A
  665.         EndM
  666.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  667.         IMPORT_CFM_FUNCTION AVDeviceGetGraphicInfo
  668.     ENDIF
  669.  
  670. ;
  671. ; pascal ComponentResult AVDeviceGetPowerState(ComponentInstance deviceComponent, AVPowerStatePtr getPowerState)
  672. ;
  673.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  674.         Macro
  675.         _AVDeviceGetPowerState
  676.             move.l              #$00040102,-(sp)
  677.             moveq               #0,D0
  678.             dc.w                $A82A
  679.         EndM
  680.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  681.         IMPORT_CFM_FUNCTION AVDeviceGetPowerState
  682.     ENDIF
  683.  
  684. ;
  685. ; pascal ComponentResult AVDeviceSetPowerState(ComponentInstance deviceComponent, AVPowerStatePtr setPowerState)
  686. ;
  687.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  688.         Macro
  689.         _AVDeviceSetPowerState
  690.             move.l              #$00040103,-(sp)
  691.             moveq               #0,D0
  692.             dc.w                $A82A
  693.         EndM
  694.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  695.         IMPORT_CFM_FUNCTION AVDeviceSetPowerState
  696.     ENDIF
  697.  
  698. ;
  699. ; pascal ComponentResult AVDeviceGetAVID(ComponentInstance deviceComponent, AVIDType *avDeviceID)
  700. ;
  701.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  702.         Macro
  703.         _AVDeviceGetAVID
  704.             move.l              #$00040104,-(sp)
  705.             moveq               #0,D0
  706.             dc.w                $A82A
  707.         EndM
  708.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  709.         IMPORT_CFM_FUNCTION AVDeviceGetAVID
  710.     ENDIF
  711.  
  712. ;
  713. ; pascal ComponentResult AVDeviceSetAVID(ComponentInstance deviceComponent, AVIDType avDeviceID)
  714. ;
  715.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  716.         Macro
  717.         _AVDeviceSetAVID
  718.             move.l              #$00040105,-(sp)
  719.             moveq               #0,D0
  720.             dc.w                $A82A
  721.         EndM
  722.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  723.         IMPORT_CFM_FUNCTION AVDeviceSetAVID
  724.     ENDIF
  725.  
  726.  
  727.  
  728.  
  729.     ENDIF ; __AVCOMPONENTS__ 
  730.  
  731.